﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <WorkflowActions>
    <Action Name="Get local datetime from UTC datetime (Sandboxed)"
            SandboxedFunction="true"
            Assembly="$SharePoint.Project.AssemblyFullName$"
            ClassName="EFSBWFActivities.getLocalTimeFromUtcSB"
            FunctionName="Execute"
            AppliesTo="all"
            UsesCurrentItem="false"
            Category="EF Workflow Activities Sandboxed">
      <RuleDesigner Sentence="Get local datetime from UTC datetime %1, store in %2">
        <FieldBind Field="UtcDatetime" Text="Utc Datetime" Id="1" DesignerType="Date" />
        <FieldBind Field="LocalDatetime" Text="Local Datetime" Id="2" DesignerType="ParameterNames" />
      </RuleDesigner>
      <Parameters>
        <Parameter Name="__Context" Type="Microsoft.SharePoint.WorkflowActions.WorkflowContext, Microsoft.SharePoint.WorkflowActions" Direction="In" DesignerType="Hide" />
        <Parameter Name="UtcDatetime" Type="System.DateTime, mscorlib" Direction="In" InitialValue="" Description="Utc Datetime" />
        <Parameter Name="LocalDatetime" Type="System.DateTime, mscorlib" Direction="Out" InitialValue="" Description="Local Datetime" />
      </Parameters>
    </Action>
  </WorkflowActions>
</Elements>
